<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>设备-水处理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script src="js/jquery-1.8.2.min.js" type="text/javascript">
</script>
		<script src="js/jquery.carouFredSel-6.0.4-packed.js"
			type="text/javascript">
</script>
		<script type="text/javascript" src="js/main.js">
</script>
		<script language="javascript" type="text/javascript"
			src="My97DatePicker/WdatePicker.js">
</script>
	</head>
	<body>
		<div class="main">
			<jsp:include page="conter/header.jsp"></jsp:include>
			<div class="certen">
				<jsp:include page="conter/deviceLeft.jsp"></jsp:include>
				<div class="content">
					<div class="mainbar">
						<div class="runbutton">
							<h2>
								<span style="letter-spacing: 20px; margin-left: 33px;">修改设备</span>
							</h2>
							<div class="clr"></div>
						</div>
						<div class="article">
							<form
								action="updatetDeviceAction?mac=${mac}&deviceId=${deviceId}"
								method="post">
								<ol>
								<li>
										<label for="deviceNo">
											MAC号
										</label>
										<input id="mac"  class="text" value="${mac}" disabled="true" />
									</li>
									<li>
										<label for="deviceNo">
											序列号
										</label>
										<input id="deviceNo" name="deviceNo" class="text"
											value="${deviceNo}" disabled="true" />
									</li>
									<li>
										<label for="deviceName">
											设备名称
										</label>
										<input id="deviceName" name="deviceName" class="text"
											value="${deviceName}" disabled="true" />
									</li>
									<li>
										<label for="addTime">
											新建时间
										</label>
										<input type="text" id="addTime" name="addTime"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss'})"
											class="Wdate" style="width: 198px" value="${addTime}" />
									</li>
									<li>
										<label for="adarea">
											区域（省）
										</label>
										<select style="width: 200px;" class="s" id="deviceArea"
											name="deviceArea">
											<option>
												${deviceArea }
											</option>
											<s:iterator id="lists" value="#request.lists">

												<option>
													${name }
												</option>
											</s:iterator>

										</select>
									</li>
									<li>
										<label for="place">
											地址
										</label>
										<input id="place" name="place" class="text" value="${place}" />
									</li>
									<li>
										<label for="dadress">
											系统运行数据
										</label>

										<s:if test='%{ph == 1}'>
											<input type=checkbox name=list value="ph" checked="false" />PH值
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="ph" />PH值</s:else>

										<s:if test='%{orp == 1}'>
											<input type=checkbox name=list value="orp" checked="false" />ORP
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="orp" />ORP</s:else>

										<s:if test='%{temperature == 1}'>
											<input type=checkbox name=list value="temperature"
												checked="false" />温度
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="temperature" />温度</s:else>

										<s:if test='%{ec == 1}'>
											<input type=checkbox name=list value="ec" checked="false" />电导率
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec" />电导率</s:else>

										<s:if test='%{openEC == 1}'>
											<input type=checkbox name=list value="openEC" checked="false" />开阀电导率
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="openEC" />开阀电导率</s:else>

										<s:if test='%{closeEC == 1}'>
											<input type=checkbox name=list value="closeEC"
												checked="false" />关阀电导率
		  	</s:if>
										<s:else>
											<input type=checkbox name=list value="closeEC" />关阀电导率</s:else>
											
										<s:if test='%{esil == 1}'>
											<input type=checkbox name=list value="esil" checked="false" />电动阀指示灯
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="esil" />电动阀指示灯
										</s:else>
										<s:if test='%{ec1 == 1}'>
											<input type=checkbox name=list value="ec1" checked="false" />PA1运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec1" />电PA1运行电流
										</s:else>
										
										<s:if test='%{ec2 == 1}'>
											<input type=checkbox name=list value="ec2" checked="false" />PA2运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec2" />电PA2运行电流
										</s:else>
										<s:if test='%{ec3 == 1}'>
											<input type=checkbox name=list value="ec3" checked="false" />PA3运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec3" />电PA3运行电流
										</s:else>
										<s:if test='%{ec4 == 1}'>
											<input type=checkbox name=list value="ec4" checked="false" />PA4运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec4" />电PA4运行电流
										</s:else>
										<s:if test='%{ec5 == 1}'>
											<input type=checkbox name=list value="ec5" checked="false" />PA5运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec5" />电PA5运行电流
										</s:else>
										<s:if test='%{ec6 == 1}'>
											<input type=checkbox name=list value="ec6" checked="false" />PA6运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec6" />电PA6运行电流
										</s:else>
										<s:if test='%{ec7 == 1}'>
											<input type=checkbox name=list value="ec7" checked="false" />PA7运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec7" />电PA7运行电流
										</s:else>
										<s:if test='%{ec8 == 1}'>
											<input type=checkbox name=list value="ec8" checked="false" />PA8运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec8" />电PA8运行电流
										</s:else>
										<s:if test='%{ec9 == 1}'>
											<input type=checkbox name=list value="ec9" checked="false" />PA9运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec9" />电PA9运行电流
										</s:else>
										<s:if test='%{ec10 == 1}'>
											<input type=checkbox name=list value="ec10" checked="false" />PA10运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec10" />电PA10运行电流
										</s:else>
										<s:if test='%{ec11 == 1}'>
											<input type=checkbox name=list value="ec11" checked="false" />PA11运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec11" />电PA11运行电流
										</s:else>
										<s:if test='%{ec12 == 1}'>
											<input type=checkbox name=list value="ec12" checked="false" />PA12运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec12" />电PA12运行电流
										</s:else>
										<s:if test='%{ec13 == 1}'>
											<input type=checkbox name=list value="ec13" checked="false" />PA13运行电流
		                             	</s:if>
										<s:else>
											<input type=checkbox name=list value="ec13" />电PA13运行电流
										</s:else>

										<input type=button value="全选"
											onClick="this.value=check(this.form.list)" />

									</li>
									<li>
										<label for="deviceDescribe">
											描述(可输入
											<span id="counter" style="color: red">200</span>字):
										</label>
										<textarea id="deviceDescribe" name="deviceDescribe" rows="8"
											cols="50" onkeyup="checkLength(this);">${deviceDescribe}</textarea>
									</li>
									<li>
										<input type="image" id="btn5" class="send"
											src="images/alter.jpg" onclick="this.form.submit()" />
										<input type="image" name="imageres" src="images/raset.jpg"
											class="send1" onclick="reset();return false;" />
										<div class="clr"></div>
									</li>
								</ol>
							</form>
						</div>

					</div>
					<div class="clr"></div>
				</div>
			</div>
			<div class="fbg">
				<div class="fbg_resize">
					<jsp:include page="conter/slide.jsp"></jsp:include>
				</div>
			</div>
			<jsp:include page="conter/footer.jsp"></jsp:include>
		</div>
	</body>
</html>